-- GENERATED SPELL FOR [Bluegill Muckdweller] --


function spell0_1028(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(1777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1028', 4000, 1)
end

function Sorts_1028(pUnit, Event)
local choix_sorts_1028 = math.random(0, 0)
if choix_sorts_1028 == 0 then
pUnit:RegisterEvent('spell0_1028', 1, 1)
end
end

function mob1028_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1028', math.random(1500, 3000), 1)
end

function mob1028_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1028_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1028_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1028, 1, 'mob1028_Action')
RegisterUnitEvent(1028, 2, 'mob1028_Leave')
RegisterUnitEvent(1028, 3, 'mob1028_Kill')
RegisterUnitEvent(1028, 4, 'mob1028_Die')
